package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.SysMarket;
import com.ruoyi.system.domain.SysMember;
import com.ruoyi.system.mapper.SysMarketMapper;
import com.ruoyi.system.service.ISysMarketService;
import com.ruoyi.system.service.ISysNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysMarketServiceImpl implements ISysMarketService {
    @Resource
    SysMarketMapper sysMarketMapper;

    @Override
    public List<SysMarket> selectMarketList(SysMarket app) {
        return sysMarketMapper.selectMarketList(app);
    }

    @Override
    public SysMarket selectMarketById(int appId) {
        return sysMarketMapper.selectMarketById(appId);
    }

    @Override
    public int insertMarket(SysMarket app) {
        return sysMarketMapper.insertMarket(app);
    }

    @Override
    public int updateMarket(SysMarket app) {
        return sysMarketMapper.updateMarket(app);
    }

    @Override
    public int deleteMarketById(int appId) {
        return sysMarketMapper.deleteMarketById(appId);
    }

    @Override
    public List<SysMarket> selectMarketnameList() {
        return sysMarketMapper.selectMarketnameList();
    }


}
